# This Python file uses the following encoding: utf-8
import datetime
from google.appengine.ext import db

class SentObject(db.Model):
    type = db.StringProperty(required=True)
    vstring = db.StringProperty(required=True)
	
class SentObjectLog(db.Model):
    date = db.DateProperty()
    so = db.ReferenceProperty(SentObject)
    pos = db.IntegerProperty()
    neg = db.IntegerProperty()
    total = db.IntegerProperty()
    rate = db.FloatProperty()
    ratediff = db.FloatProperty()

class SentObjectVote(db.Model):
    mid = db.IntegerProperty()
    uid = db.StringProperty(required=True)
    so = db.ReferenceProperty(SentObject)
    psentiment = db.BooleanProperty()
    sentiment = db.BooleanProperty()
    dirty = db.IntegerProperty()
# Methods
    


